import request from '@/utils/request'

// 查询考勤及薪资发放列表
export function listPayslip(query) {
  return request({
    url: '/adm/payslip/list',
    method: 'get',
    params: query
  })
}

// 查询考勤及薪资发放详细
export function getPayslip(id) {
  return request({
    url: '/adm/payslip/' + id,
    method: 'get'
  })
}

// 新增考勤及薪资发放
export function addPayslip(data) {
  return request({
    url: '/adm/payslip',
    method: 'post',
    data: data
  })
}

// 修改考勤及薪资发放
export function updatePayslip(data) {
  return request({
    url: '/adm/payslip',
    method: 'put',
    data: data
  })
}

// 删除考勤及薪资发放
export function delPayslip(id) {
  return request({
    url: '/adm/payslip/' + id,
    method: 'delete'
  })
}

// 启用禁用客户
export function disablePayslip(data) {
  return request({
    url: '/adm/payslip/disable',
    method: 'post',
    data: data
  })
}
